Skip to content

fix(release): publish Homebrew formula instead of cask#24

Merged
hbrombeer merged 1 commit intomainfrom
fix/homebrew-formula-not-cask
Apr 30, 2026
Merged

fix(release): publish Homebrew formula instead of cask#24
hbrombeer merged 1 commit intomainfrom
fix/homebrew-formula-not-cask

Conversation

@hbrombeer
Copy link
Copy Markdown
Member

Summary

  • goreleaser was writing into Casks/grounds.rb on every release (0.1.8 → 0.1.10), but `brew install groundsgg/tap/grounds` looks for a Formula, not a Cask. The top-level `grounds.rb` (Formula) was last touched manually for 0.1.7 and never updated since.
  • Result: anyone on the formula install path stuck at 0.1.7 even though three releases have shipped today.
  • Cask is for macOS GUI apps; Formula is the conventional shape for a cross-platform CLI binary.

Switching `homebrew_casks:` → `brews:` so each release overwrites the top-level Formula and the install path users already have starts working again.

Test plan

  • Merge → release-please opens a 0.1.11 release PR
  • Merge release PR → goreleaser overwrites `grounds.rb` (Formula) at v0.1.11
  • `brew update && brew upgrade groundsgg/tap/grounds` resolves to v0.1.11
  • Follow-up: delete the obsolete `Casks/grounds.rb` from the tap

🤖 Generated with Claude Code

goreleaser was writing into Casks/grounds.rb on every release
(0.1.8 → 0.1.10), but `brew install grounds/tap/grounds` looks
for a Formula, not a Cask. The top-level grounds.rb (Formula) in
the tap was last touched manually for 0.1.7 and never updated
since — so anyone using the formula install path stuck at 0.1.7
while every release pushed a fresh Cask none of them touched.

Cask is for macOS GUI apps; Formula is the conventional shape
for a cross-platform CLI binary. Switching to `brews:` so each
release overwrites the top-level Formula and the install path
users already have starts working again.

The obsolete Casks/grounds.rb in the tap can be deleted in a
separate cleanup; leaving it temporarily keeps any existing
`brew install --cask` users at 0.1.10 until they switch.
@hbrombeer hbrombeer merged commit 03fd213 into main Apr 30, 2026
5 checks passed
@hbrombeer hbrombeer deleted the fix/homebrew-formula-not-cask branch April 30, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant